package me

import grails.converters.JSON
import groovy.json.*
import groovy.sql.Sql
class AppController {

	def dataSource

    def index() { 
    	def sql = new Sql(dataSource)
    	def productEnv = [:]
    	productEnv.title="上投摩根无纸化会议管理系统"
    	//println productEnv.title

    	def fileTypes = [:]
    	FileType.findAll("from FileType").each{
    		fileTypes[it.id] = it.cnName
    	}
    	 


    	[productEnv:productEnv,fileTypes:JsonOutput.toJson(fileTypes)]
    	

    }
    def test() {
		println params.username
		println params.password
    }

	def excelencode() {

	}

	def excelencrypt() {
		def results = []

		println 444456656
		render results  as JSON
	}


}
